package com.smart.fourteen.mybatis.mapperscanner;

import com.smart.fourteen.mybatis.mapperscanner.dao.TopicDao;
import com.smart.fourteen.mybatis.model.Topic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("topicService")
public class TopicService {
    @Autowired
    private TopicDao topicDao;

    public Topic getTopic(int id){
        return topicDao.getTopic(id);
    }
}
